/*
** case.h for  in /u/all/tessa_b/cu/public/trantor
** 
** Made by arnaud1 tessa
** Login   <tessa_b@epitech.net>
** 
** Started on  Tue Jul  5 09:48:06 2011 arnaud1 tessa
** Last update Wed Jul  6 23:14:55 2011 arnaud1 tessa
*/

#ifndef		__CASE_H__
#define		__CASE_H__

#include	"../resources/resources.h"
#include	"../trantorian/trantorian.h"

typedef	struct	s_case
{
  t_resources	resources;
  t_trantorian	**trantorians;
  int		nb_trantorians;
}		t_case;

void		case_init(t_case *c, int max_trantorians);
int		case_remove_resource(t_case *c, const char *r_name);
int		case_add_resource(t_case *c, const char *r_name);
int		case_add_trantorian(t_case *c, t_trantorian *tr);
void		case_remove_trantorian(t_case *c, t_trantorian *tr);
char		*case_to_string(t_case *c);

#endif		/*__CASE_H__*/
